package com.pokeoffice.calendar;

/**
 * The Class Visit.
 */
public class Visit {

	/** The id. */
	private long id;
	
	/** The user id. */
	private long userID;
	
	/** The professor id. */
	private long professorID;
	
	/** The nurse id. */
	private long nurseID;
	
	/** The treatment id. */
	private long treatmentID;
	
	/** The visit time. */
	private String visitTime;
	
	/** The visit location. */
	private String visitLocation;

	/**
	 * Instantiates a new visit.
	 *
	 * @param id the id
	 * @param userID the user id
	 * @param professorID the professor id
	 * @param nurseID the nurse id
	 * @param treatmentID the treatment id
	 * @param visitTime the visit time
	 * @param visitLocation the visit location
	 */
	public Visit(long id, long userID, long professorID, long nurseID,
			long treatmentID, String visitTime, String visitLocation) {
		this.id = id;
		this.userID = userID;
		this.professorID = professorID;
		this.nurseID = nurseID;
		this.treatmentID = treatmentID;
		this.visitTime = visitTime;
		this.visitLocation = visitLocation;
	}

	/**
	 * Gets the iD.
	 *
	 * @return the iD
	 */
	public long getID() {
		return id;
	}

	/**
	 * Sets the iD.
	 *
	 * @param id the new iD
	 */
	public void setID(long id) {
		this.id = id;
	}

	/**
	 * Gets the user id.
	 *
	 * @return the user id
	 */
	public long getUserID() {
		return userID;
	}

	/**
	 * Gets the professor id.
	 *
	 * @return the professor id
	 */
	public long getProfessorID() {
		return professorID;
	}

	/**
	 * Gets the nurse id.
	 *
	 * @return the nurse id
	 */
	public long getNurseID() {
		return nurseID;
	}

	/**
	 * Gets the treatment id.
	 *
	 * @return the treatment id
	 */
	public long getTreatmentID() {
		return treatmentID;
	}

	/**
	 * Gets the visit time.
	 *
	 * @return the visit time
	 */
	public String getVisitTime() {
		return visitTime;
	}
	
	/**
	 * Gets the visit location.
	 *
	 * @return the visit location
	 */
	public String getVisitLocation() {
		return visitLocation;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "Visit on " + visitTime.substring(0, 11);
	}
}
